#!/bin/bash
set -e
cd /root/eth-net-intelligence-api
perl -pi -e "s/XXX/$(hostname)/g" app.json
pm2 start ./app.json -l /log/output.log
sleep 1
geth --datadir=/root/.ethereum/devchain --dev --dev.period 1 --rpcapi "db,personal,eth,net,web3,miner,txpool" --rpccorsdomain='*' --networkid=1234 --rpc --rpcaddr="0.0.0.0" init=/root/genesis/genesis.json
